﻿@model Fish.Models.Users

@{
    ViewBag.Title = "Details";
}
<h2>Details</h2>


<div id="options" >

    <p>@if (Session["userID"] != null)
        {
            if (Model.ID + "" == Session["userID"].ToString())
            {
                @Html.ActionLink("Edit", "Edit", new { id = Model.ID })
            }
         } 
    </p>
    <p>@Html.ActionLink("Back to List", "Index")</p>
    <p>
        @if (Session["userID"] != null)
        {
            if (Model.ID + "" == Session["userID"].ToString())
            {
              @Html.ActionLink("View my events", "Index", "EventUserRelations")
            }
        }
    </p>
    <p>
        @if (Session["userID"] != null)
        {
            if (Model.ID + "" == Session["userID"].ToString())
            {
                @Html.ActionLink("My Responsibilities", "ViewResponsibilities", "Users")
            }
        }
    </p>
</div>

    <div id="attributes2" >
        <h4>Users</h4>
        <hr />
        <dl class="dl-horizontal">
            <dd>
                <img src='@Url.Content("~/Users/ViewImage/"+ Model.ID)' height="100" width="100" />
            </dd>

            <dt>
                @Html.DisplayNameFor(model => model.Username)
            </dt>

            <dd>
                @Html.DisplayFor(model => model.Username)
            </dd>

            <dt>
                @Html.DisplayNameFor(model => model.DateOfBirth)
            </dt>

            <dd>
                @Html.DisplayTextFor(model => model.DateOfBirth)
            </dd>

            <dt>
                @Html.DisplayNameFor(model => model.Email)
            </dt>

            <dd>
                @Html.DisplayFor(model => model.Email)
            </dd>

        </dl>
    </div>
    
